package com.itheima.auth.intergration.authenticator;


import com.itheima.auth.intergration.entity.IntegrationAuthenticationEntity;
import com.itheima.sys.dto.SysUserDTO;

public interface IntegrationAuthenticator {

    /**
     * 处理集成认证
     *
     * @param entity 集成认证实体
     * @return 用户表实体
     */
    SysUserDTO authenticate(IntegrationAuthenticationEntity entity);

    /**
     * 判断是否支持当前集成认证类型
     * 从 IntegrationAuthenticationEntity参数中认证类型判断当前提交认证方式是哪个
     * @param entity 集成认证实体
     */
    boolean support(IntegrationAuthenticationEntity entity);

}
